@use "./transition";
@use "@/theme/index";

#app {
    width: 100%;
    height: 100vh;
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    // text-align: center;
}

.scroll-box {
    padding-right: 5px !important;

    .el-scrollbar__view {
        margin-right: 10px !important;
    }
}

.global-box {
    display: flex;
    flex-direction: column;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    margin: 15px;
    overflow-y: auto;
    background-color: var(--system-container-main-background);
    border-radius: 8px;

    .global-box-form {
        display: flex;
        justify-content: space-between;
        padding: 15px 15px 0;

        .global-box-form-handle {
            display: flex;
            justify-content: flex-start;

            .export-excel-btn {
                margin-left: 15px;
            }
        }

        .global-box-form-search {
            display: flex;
            justify-content: flex-end;

            .search-btn {
                margin-left: 15px;
            }
        }

        .el-form-item {
            margin-bottom: 0;
        }
    }

    .global-box-table {
        flex: 1;
        height: 100%;
        padding: 15px;
        overflow: auto;
    }
}

a {
    text-decoration: none;
}

.system-scrollbar {
    &::-webkit-scrollbar {
        // display: none;
        width: 6px;
    }

    &::-webkit-scrollbar-thumb {
        background: rgb(144, 147, 153, 0.3);
        border-radius: 10px;
        transition: 0.2s ease-in-out;
    }

    &::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    &:hover {
        &::-webkit-scrollbar {
            display: block;
        }

        &::-webkit-scrollbar-thumb {
            background: rgb(144, 147, 153, 0.3);
            border-radius: 10px;

            &:hover {
                background: rgb(144, 147, 153, 0.5);
            }
        }
    }
}
